Basic Resource Access メモ
resource_stream(package_or_requirement, resource_name)
Return a readable file-like object for the specified resource
resource_string(package_or_requirement, resource_name)
Return the specified resource as bytes.
The resource is read in binary fashion, such that the returned string contains exactly the bytes that are stored in the resource.
リソースに格納されたバイトそのものを含む文字列を返す
you can’t use resource_string() or resource_stream() on directory resources.